﻿#include <stdio.h>
#include <math.h>
int main()
{
	int n, i;
	double sum;

	printf("Enter n:");
	scanf_s("%d", &n);
	sum = 0;
	for (i = 1; i <= n; i++) {
		sum = sum + sqrt(i);
	}
	printf("sum=%.2f", sum);
	printf("熊孝义");

	return 0;
}